package com.hnguigu.health.houduan.jpx.service_jpx.impl;

import com.google.gson.internal.$Gson$Preconditions;
import com.hnguigu.health.houduan.jpx.service_jpx.TMemberSer;
import com.hnguigu.health.mapper.TMemberMapper;
import com.hnguigu.health.pojo.TMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class TMemberSerimpl implements TMemberSer {
    @Autowired(required = false)
    TMemberMapper tMemberMapper;

    @Override
    public int TmenmberUpdate(TMember tMember) {
        int i = tMemberMapper.updateByPrimaryKeySelective(tMember);
        return i;
    }

    @Override
    public TMember loginB(TMember record) {
        return tMemberMapper.login(record);
    }
    //注册
    @Override
    public int loginA(TMember record) {
        return tMemberMapper.insert(record);
    }


}
